{% extends "base.html" %}

{% block title %}Add pilot{% endblock %}
{% block heading %}Add pilot{% endblock %}

{% block content %}
		<form action='/submitpilot' method='post'>
		<input type='hidden' name='key' value='{{op.key}}' />
		<table>
			<tr>
				<td>Date:</td>
				<td>{{op.op_date|date:"j F Y"}}</td>
			</tr>	
			<tr>
				<td>Op name:</td>
				<td>{{op.name}}</td>
			</tr>
			<tr>
				<td valign='top'>Pilots:</td>
				<td>
				{% for pilot in op.pilots %}
					{{pilot}} <br/>
				{% endfor %}
				</td>
			</tr>
			<tr>
				<td>Add pilot:</td>
				<td><input type='text' name='pilot' value="{{ default_name }}"/></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type='submit' value='Add'/></td>
			</tr>
		</table>
		</form>
{% endblock %}
